<?php
/**
 * User: yuesir
 * Date: 2016/4/26
 * Time: 23:17
 */
namespace Lib;

class Object {
    private $attr = array();

    function __get($key)
    {
        if(isset($this->attr[$key])) {
            return $this->attr[$key];
        }
    }

    function  __set($key, $val)
    {
        $this->attr[$key] = $val;
    }
    public static function test()
    {
        echo "test " . __CLASS__ . "<br/>";
    }
}